Conditions | 2 |
Total Lines | 6 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2 |
Changes | 0 |
1 | import {Observer} from '@enbock/state-value-observer/ValueObserver'; |
||
21 | |||
22 | initialize(): void { |
||
23 | 2 | if (this.currentPage.value == null) return; |
|
24 | 1 | const firstPage: PageData = this.currentPage.value; |
|
25 | 1 | this.history.replaceState(firstPage, firstPage.name, firstPage.baseUrl); |
|
26 | 1 | this.updatePage(firstPage); |
|
27 | } |
||
48 |